package so.sao.code.service.infrastructure.enums.convert;

import javax.persistence.AttributeConverter;

import so.sao.code.service.infrastructure.enums.PrintFileFieldConfig;

public class PrintFileFieldConfigConvert implements AttributeConverter<PrintFileFieldConfig, String> {

	@Override
	public String convertToDatabaseColumn(PrintFileFieldConfig attribute) {
		return attribute.getValue();
	}

	@Override
	public PrintFileFieldConfig convertToEntityAttribute(String dbData) {
		return PrintFileFieldConfig.fromValue(dbData);
	}

}
